import request from '@/utils/request'

// 查询流程进度业务明细列表
export function listDetail(query) {
    return request({
        url: '/processSchedule/detail/list',
        method: 'get',
        params: query
    })
}

// 查询流程进度业务明细详细
export function getDetail(id) {
    return request({
        url: '/processSchedule/detail/' + id,
        method: 'get'
    })
}

// 根据业务ID查询流程进度业务
export function getDetailByBusinessId(businessId) {
    return request({
        url: '/processSchedule/detail/getDetailByBusinessId/' + businessId,
        method: 'get'
    })
}

// 新增流程进度业务明细
export function addDetail(data) {
    return request({
        url: '/processSchedule/detail',
        method: 'post',
        data: data
    })
}

// 修改流程进度业务明细
export function updateDetail(data) {
    return request({
        url: '/processSchedule/detail',
        method: 'put',
        data: data
    })
}

// 删除流程进度业务明细
export function delDetail(id) {
    return request({
        url: '/processSchedule/detail/' + id,
        method: 'delete'
    })
}

// 导出流程进度业务明细
export function exportDetail(query) {
    return request({
        url: '/processSchedule/detail/export',
        method: 'get',
        params: query
    })
}
